#include <stdio.h>
#include <string.h>

int main()
{
    char a[100] = "hello王旭";
    unsigned int len = 0;
    /*
    while(a[len])
    {
        len++;
    }
    */
    len = strlen(a);
    //strlen 得到字符串有效字符的长度BYTE
    printf("%u", len);
    return 0;
}

